import request from '@/utils/request'

// 查询撤场上报列表
export function listWithdrawalReport(query) {
  return request({
    url: '/check/withdrawalReport/list',
    method: 'get',
    params: query
  })
}

// 查询撤场上报详细
export function getWithdrawalReport(withdrawalReportId) {
  return request({
    url: '/check/withdrawalReport/' + withdrawalReportId,
    method: 'get'
  })
}

// 新增撤场上报
export function addWithdrawalReport(data) {
  return request({
    url: '/check/withdrawalReport',
    method: 'post',
    data: data
  })
}

// 修改撤场上报
export function updateWithdrawalReport(data) {
  return request({
    url: '/check/withdrawalReport',
    method: 'put',
    data: data
  })
}

// 删除撤场上报
export function delWithdrawalReport(withdrawalReportId) {
  return request({
    url: '/check/withdrawalReport/' + withdrawalReportId,
    method: 'delete'
  })
}
